From: TheSandDoctor Date: Mon, 23 Sep 2019 17:24:19 +0000 (-0700) Subject: Maintenance.php: Fix mwdebug error X-Git-Tag: 1.34.0-rc.0~103^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/%7B%24conf-%3EScriptPath%7D/%7B%7B%20url_for%28%27vote_deletechoices%27%2C%20idvote=vote.id%2C%20iduser=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=d6f4189088fa35a5977357b8d47244b73d29ef86;p=lhc%2Fweb%2Fwiklou.git Maintenance.php: Fix mwdebug error Resolve error with showJobs.php --mwdebug option. Previously, it displayed an error if not followed by "=1". This was resolved by changing $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, true ); to $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, false ); Bug: T233257 Change-Id: I322fa539a302c2726fffd2420f7f56aec476b32b --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index f89fa6281a..f741cd2653 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -587,7 +587,7 @@ abstract class Maintenance { "server name detection may fail in command line scripts.", false, true ); $this->addOption( 'profiler', 'Profiler output format (usually "text")', false, true ); // This is named --mwdebug, because --debug would conflict in the phpunit.php CLI script. - $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, true ); + $this->addOption( 'mwdebug', 'Enable built-in MediaWiki development settings', false, false ); # Save generic options to display them separately in help $this->mGenericParameters = $this->mParams;